﻿#include<iostream>
#include"dyArray.h"
#include<ctime>
using namespace std;

int main()
{
	int n = 100000;
	double ret1 = 0;
	double ret2 = 0;
	DyArray l1 = DyArray(n, FixedRandom);

	time_t t1 = clock();

	l1.mergeSort();

	time_t t2 = clock();
	ret1 = (double)t1 / CLOCKS_PER_SEC;
	ret2 = (double)t2 / CLOCKS_PER_SEC;

	cout << "执行排序的时间：" << (ret2-ret1) << "s" << endl;
	cout << "当前执行的是二路归并排序" <<" "<< "数据量为：" << n << endl;
	return 0;
}
